/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.worldscale.xp.wslib.im.jabber;

import net.worldscale.xp.wspr.Module;
import net.worldscale.xp.wspr.ModuleKey;
import net.worldscale.xp.wspr.WSPR;

/**
 *
 * @author Kun
 */
public abstract class Jabber extends Module {

    public static final ModuleKey MODULE_KEY = new ModuleKey(Jabber.class.getName());
    private static Jabber sInst;

    public static Jabber getInstance() {
        if (sInst == null) {
            sInst = (Jabber) WSPR.getInstance().getModuleManager().createModule(MODULE_KEY);
        }
        return sInst;
    }

    public abstract JabberClient newClient();
}
